home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ CMD Options 1.xpl < prev    next >
Text File  |  2002-01-04  |  1KB  |  48 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\Security\Disabled Features"
  5. "NAME"="DOS Box Enabled"
  6. "VERSION"="1.10"
  7. "OSVERSION"="10101"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Current User allowed to start a DOS Box"
  10. "DESCRIPTION 1"="If this option is not checked, the current user is no longer allowed to start a DOS box (COMMAND.COM)."
  11. "AUTHOR"="Xteq Systems"
  12. "CONTACTURL"="http://www.xteq.com"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"=" "
  15.  
  16.  
  17.  
  18. sPath="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\WinOldApp\Disabled"
  19.  
  20. Sub Plugin_Initialize 
  21.     i=RegReadValue(sPath)
  22.     if i=0 or IsEmpty(i) then
  23.        Call SetUIElement(1,true) 
  24.     end if  
  25. End Sub
  26.  
  27. Sub Plugin_CheckData(ElementIndex)
  28. End Sub
  29.  
  30. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  31.  b=GetUIElement(1)
  32.  if b=false then
  33.     Call RegWriteValue(sPath,1,2) 
  34.  else
  35.     s=RegReadValue(sPath)
  36.     if IsEmpty(s)=false then
  37.        Call RegDeleteValue(sPath)
  38.     end if
  39.  end if
  40. End Sub
  41.  
  42.  
  43. Sub Plugin_Terminate 
  44. End Sub
  45.  
  46.  
  47.  
  48.